# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 
# $Header: $ 

DESCRIPTION="jack audio plugin for beep media player" 

HOMEPAGE="http://xmms-jack.sourceforge.net/" 

MY_P=${P/bmp/xmms} 
MY_PN=${PN/bmp/xmms} 

SRC_URI="mirror://sourceforge/xmms-jack/${MY_P}.tar.gz" 

LICENSE="GPL-2" 
SLOT="0" 
KEYWORDS="~x86" 
IUSE="" 
DEPEND="media-sound/beep-media-player 
	media-sound/jack-audio-connection-kit" 
S=${WORKDIR}/${MY_PN} 

src_unpack() { 
	unpack ${A} || die "Unpacking the source failed" 
	cd ${S} || die "Could not change directory." 
} 

src_compile() { 
	rm {S}/Makefile 
	mv ${S}/Makefile.BMP ${S}/Makefile 
	econf || die "Configure failed" 
	emake || die "Make failed" 
} 

src_install() { 
	einstall || die "Install failed" 
}
